<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>布局容器</title>
    <link rel="stylesheet" href="layui/css/layui.css">
    <script src="layui/js/layui.js"></script>

</head>
<body>
    <div class="layui-container" style="background-color: #0000cc; height: 300px;">
        固定宽度（两侧有留白）
    </div>
    <div class="layui-fluid" style="background-color: #00aff0; height: 300px">
        100%宽度
    </div>
</body>
</html>